package cn.it.ygh.service;

import java.util.List;

import cn.it.ygh.pojo.House;
import cn.it.ygh.pojo.Order;
import cn.it.ygh.pojo.User;

public interface UserService {
	public User login(User u);                //登录
	
	public void register(User u);             //注册
	
	public void delete(int houseId);          //删除
	
	public void modify(User u);               //修改
	
	List<House> findAllRecords(int pageStart,int pageSize,String userAccount);           //查找发布记录
	public int findRecordsTotal(String userAccount);
	
	public List<Order> findAllOrders(int pageStart,int pageSize);           //查找交易记录
	public int findOrdersTotal();
	
	public void recordModify(House h);
	
	public House getRecordById(int houseId);
	
	public void userImg(User u);
	
	public String getPwdByUserAccount(String userAccount);
}
